#ifndef LAYER_H
#define LAYER_H

#include <QObject>

class LayerManager;

class Layer : public QObject
{
	friend class LayerManager;
	Q_OBJECT

public:
	Layer(QPointer<LayerManager> layerManager, const QString& strName, bool bMainLayer = false, QObject *parent = 0);
	~Layer();

	const QString& name() const;
	bool isMainLayer() const;
private:
	void paint(QPainter& painter);
	QString m_name;
	QColor  m_backColor;
	bool    m_bMainLayer;
	QPointer<LayerManager> m_layerManager;
};

#endif // LAYER_H
